package com.zxcl.feign.sentinel;


import com.zxcl.constant.BusinessEnum;
import com.zxcl.domain.ShopDetail;
import com.zxcl.feign.OrderStoreFeign;
import com.zxcl.model.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Slf4j
public class OrderStoreFeignSentinel implements OrderStoreFeign {
    /**
     * 根据店铺IDS查询店铺信息
     *
     * @param shopIds
     * @return
     */
    @Override
    public Result<List<ShopDetail>> getShopDetailsByIds(List<Long> shopIds) {
        log.error("远程调用订单模块根据店铺IDS查询店铺信息失败:{}", shopIds);
        return Result.fail(BusinessEnum.SERVER_INNER_ERROR);
    }
}
